import Fibonacci
import unittest

class FibonacciTest(unittest.TestCase):
    fibonaccinums = ((12,144),(22,17711),(12,144))
    def setUp(self):
        self.test = Fibonacci.FibonacciClass()

    def testfibonacci(self):
        for fsnum,nums in self.fibonaccinums:
            result = self.test.Fibonacci(fsnum)
            self.assertEqual(nums,result)
            
    def tearDown(self):
        #self.test.dispose()
        self.test = None     
       
if __name__ == '__main__':
    suite = unittest.TestLoader().loadTestsFromTestCase(FibonacciTest)
    unittest.TextTestRunner(verbosity=2).run(suite)